<?php
  include "./class_sql_document.php";

  $exp=new sql_experience("align_word00");

  $array_obj_sql=array(
    "sql_document"=>new sql_document($exp),
    "sql_bloc"=>new sql_bloc($exp),
    "sql_rstr"=>new sql_rstr($exp),
    "sql_graphie"=>new sql_graphie($exp),
    "sql_groupe"=>new sql_groupe($exp),
    "sql_comparaison"=>new sql_comparaison($exp)
  );

  $exp->writer_drop_create_experience($array_obj_sql);

die();
  $array_obj_sql=$exp->reader_experience();

  $exp->writer_drop_create_experience($array_obj_sql);

  $array_array_value=array();
  $array_value1=array(
    "path_doc"=>"./fr/dtc.html",
    "lg"=>"fr"
  );
  $array_value2=array(
    "path_doc"=>"./et/dtc.html",
    "lg"=>"et"
  );
  $array_array_value[]=$array_value1;
  $array_array_value[]=$array_value2; 

  $array_array_value2=array();
  $bloc_value1=array(
    "id_document"=>1,
    "contenu"=>"blob1 : , . é&;;;o"
  );
  $bloc_value2=array(
    "id_document"=>1,
    "contenu"=>"blob2 : , . é&;;~~\"\";o"
  );
  $array_array_value2[]=$bloc_value1;
  $array_array_value2[]=$bloc_value2; 

  $array_obj_sql["sql_document"]->writer_array_values($array_array_value);
  $array_obj_sql["sql_bloc"]->writer_array_values($array_array_value2);
//  $res=$array_obj_sql["sql_document"]->reader_all2array_id();
//  $res=$array_obj_sql["sql_document"]->reader_id2array(1);
//  $res=$array_obj_sql["sql_document"]->reader_all2array();
//  $array_obj_sql["sql_document"]->writer_delete_table();
//  $res=$array_obj_sql["sql_document"]->exec_query("SELECT * FROM Document;",array());
//  $res=$array_obj_sql["sql_document"]->reader_lg2array("et");
//  $res=$array_obj_sql["sql_bloc"]->reader_all2array();
//  $res=$array_obj_sql["sql_bloc"]->reader_lg2array("fr");
  $res=$array_obj_sql["sql_bloc"]->reader_id_document2array(1);
  print_r($res);

//  $exp->__create_db();
/*
  $res=$exp->reader_table();
//  print_r($res);
  $array_obj_sql=array(
    "sql_document"=>new sql_document($exp),
    "sql_bloc"=>new sql_bloc($exp),
    "sql_rstr"=>new sql_rstr($exp),
    "sql_graphie"=>new sql_graphie($exp),
    "sql_groupe"=>new sql_groupe($exp),
    "sql_comparaison"=>new sql_comparaison($exp)
  );
*/



?>
